{#
  Introducing the MySQL 8 Document Store
  
  This template defines the base template used for all of the HTML forms and
  responses in the MyLibrary application. It also defines the menu for the
  basic operations.
  
  Dr. Charles Bell, 2017
#}
{% extends "bootstrap/base.html" %}
{% block title %}MyLibrary{% endblock %}
{% block navbar %}
<div class="navbar navbar-inverse" role="navigation">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/">MyLibrary v1</a>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li><a href="/list/book">Books</a></li>
            </ul>
            <ul class="nav navbar-nav">
                <li><a href="/list/author">Authors</a></li>
            </ul>
            <ul class="nav navbar-nav">
                <li><a href="/list/publisher">Publishers</a></li>
            </ul>
        </div>
    </div>
</div>
{% endblock %}

{% block content %}
<div class="container">
    {% for message in get_flashed_messages() %}
    <div class="alert alert-warning">
        <button type="button" class="close" data-dismiss="alert">&times;</button>
        {{ message }}
    </div>
    {% endfor %}

    {% block page_content %}{% endblock %}
</div>
{% endblock %}
